import request from '@/utils/request'
/** 隐患排查清单类型 */
// 查询隐患清单类型列表
export function listCheckListType() {
    return request({
      url: '/setting/hiddentype/list',
      method: 'get'
  })
}

// 新增隐患清单类型
export function addCheckListType(data) {
    return request({
      url: '/setting/hiddentype',
      method: 'post',
      data: data
    })
  }  

  // 删除隐患排查清单类型
export function deleteCheckListType(hiddenListTypeId) {
    return request({
      url: '/setting/hiddentype/'+hiddenListTypeId,
      method: 'delete',      
    })
  } 
  // 修改隐患排查清单类型
export function updateCheckListType(data) {
    return request({
      url: '/setting/hiddentype',
      method: 'put',
      data: data
    })
  }
  // 查询隐患排查清单类型信息
export function getCheckListType(hiddenListTypeId) {
    return request({
      url: '/setting/hiddentype/' + hiddenListTypeId,
      method: 'get'
    })
  } 

